package com.example.htmlspringtest.dao;

import com.example.htmlspringtest.base.dao.BaseMapper;
import com.example.htmlspringtest.entity.oTestCompany;
import com.example.htmlspringtest.entity.oTestIndustrytype;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @belongsProject: HTML-Spring-test
 * @belongsPackage: com.example.htmlspringtest.dao
 * @author: dongmufengchun
 * @createTime: 2022-06-19  15:33
 * @description: 持久层：用来操作数据库
 * @version: 1.0
 */
@Mapper
public interface CompanyMapper extends BaseMapper<oTestCompany>{
    /**
     * 功能简介: 对象查询
     *
     * @return java.util.List<T>
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    List<oTestCompany> list();

    /**
     * 功能简介: 对象保存
     *
     * @param oTestCompany
     * @return int
     * @Author dongmufengchun
     * @Date 16:23 2022/6/19
     **/
    @Override
    int save(oTestCompany oTestCompany);

    /**
     * 功能简介: 对象删除
     *
     * @param id
     * @return int
     * @Author dongmufengchun
     * @Date 16:23 2022/6/19
     **/
    @Override
    int delete(Long id);

    /**
     * 功能简介: 对象修改
     *
     * @param oTestCompany
     * @return int
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    int update(oTestCompany oTestCompany);

    /**
     * 功能简介: 根据ID查询对象
     *
     * @param id
     * @return T
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    oTestCompany findById(Long id);
}

